//
//  XWHTitleButtonBaseTBCell.swift
//  XiaoweHearingAid
//
//  Created by Riven on 2022/9/21.
//

import UIKit

class XWHTitleButtonBaseTBCell: XWHBaseTBCell {

    lazy var button = UIButton()
    
    var clickCallback: (() -> ())?
    
    override func addSubViews() {
        super.addSubViews()
        
        contentView.addSubview(button)
        
        button.addTarget(self, action: #selector(clickButton), for: .touchUpInside)
    }
    
//    override func relayoutSubViews() {
//    }
    
    @objc func clickButton() {
//        button.isSelected = !button.isSelected
        AppInnerFuncHelper.vibrate()
        
        clickCallback?()
    }

}
